home *** CD-ROM | disk | FTP | other *** search
/ Windows Expert / Windows Expert.iso / others / nwutils.zip / AGENT.NW next >
Text File  |  1992-01-23  |  4KB  |  107 lines

  1.                      Tips and Solutions
  2.                     Agent Task Keystrokes
  3.  
  4. Symptoms:
  5. -    Keystrokes not being sent to the DOS applications.
  6. -    Cannot record keystrokes when working in an encapsulated
  7.      application.  Will sometimes get EN114 error when
  8.      recording a task.
  9.  
  10. Cause:
  11. -    Conflicting or missing versions of the following program
  12.      files.
  13.      WINOLDAP.MOD
  14.      WINOA386.MOD
  15.      WINOA286.MOD
  16.      VNWD.386
  17.      ENCPDLL.DLL
  18. -    Missing DEVICE=VNWD.386 statement in the SYSTEM.INI
  19.      file.
  20.      Note:  HP NewWave attempts to clean up these files when
  21.      installing, however, it may not always find all the
  22.      versions of these files.
  23.  
  24. Solution: (You must do all the following steps)
  25. 1.   Check to make sure that the files listed above are
  26.      current.  NewWave keeps a copy of these files in the
  27.      \HPNWPROG\WINMOD directory (on the server if this is a
  28.      shared copy).  They are not being executed here but are
  29.      kept so the user can always find the correct version.
  30.      In a workstation with a local Windows install, these
  31.      should be in windows or the \SYSTEM subdirectory under
  32.      Windows.
  33.      In a network Windows install, these should be in the
  34.      windows directory on the server or the local Windows
  35.      directory (either root or \SYSTEM).  If you have copies
  36.      in both places, make sure both copies are current and
  37.      the same.
  38. 2.   Go through all the drives referenced in your path and
  39.      make sure that are no other versions of these files
  40.      ANYWHERE!  The conflict may cause problems for
  41.      executions of DOS applications from NewWave.
  42. 3.   Make sure that the line "DEVICE=VNWD.386" is in the
  43.      [386ENH] section of the SYSTEM.INI file.
  44.  
  45.  
  46. Symptom:
  47. -    Keystrokes sent to DOS applications never gets there.
  48. -    Some keystrokes sent to DOS application are dropped.
  49.  
  50. Cause:
  51. -    Timing problem.  The keystrokes have been sent to the
  52.      application before the application has a chance to load.
  53.  
  54. Solution:
  55. -    If the application was run from the DOS Programs list
  56.      box, you can try the following.
  57.      In the RUN PROGRAM KEYSTROKES "...." statement, insert a
  58.      [WAIT n] macro in the beginning of the string.   The
  59.      [WAIT n] macro tells the task to wait n number of
  60.      seconds before sending the next keystroke.  Also, you
  61.      may need to insert this macro in the middle of the
  62.      keystrokes string so the previous operation can be
  63.      completed before the next keystrokes are sent.  For
  64.      example, the following command sent to a DOS prompt may
  65.      need to be slowed down:
  66.           RUN PROGRAM KEYSTROKES "dir /p{enter}exit{enter}"
  67.      After modification, it will look like:
  68.           RUN PROGRAM KEYSTROKES "[WAIT 3]dir /p{enter}[WAIT
  69.      5]exit{enter}"
  70.      The first [WAIT] allow the DOS shell to be loaded before
  71.      keystrokes are sent and the next [WAIT] allows DOS to
  72.      finish a directory listing before sending the next
  73.      keystrokes.
  74.  
  75. -    If the application was encapsulated from a Bridge
  76.      Builder (appears as an icon on the NewWave Office)
  77.      object, then you can use the [WAIT n] macro as described
  78.      above.  This macro works the same way in the
  79.      DO_KEYSTROKES command as it does in the RUN PROGRAM
  80.      KEYSTROKES command.  The easier (and therefore
  81.      recommended) solution is the following:
  82.      -    Go into the Bridge Builder object and select the 2.
  83.           Define Object/Tool command from the Settings menu.
  84.           Click on the Define Advanced Macro button.  In the
  85.           Macro edit box you should see two values [GNULL
  86.           3][GWAIT 0].  Try upping the [GWAIT] value to
  87.           [GWAIT 3].
  88.      Both the [WAIT] and [GWAIT] can be used together.  For
  89.      more detailed explanation and syntax information, please
  90.      refer to the HP NewWave: Agent Task Language Reference
  91.      manual, Chapter 10.
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.      09/10/91
  107.